package com.dms.modules.product.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "商品评价VO", description = "商品评价视图对象")
public class ProductCommentVO {

    @ApiModelProperty("评价ID")
    private Long id;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("评分")
    private Integer rating;

    @ApiModelProperty("评价内容")
    private String content;

    @ApiModelProperty("评价图片，多个图片用逗号分隔")
    private String images;

    @ApiModelProperty("点赞数")
    private Integer likeCount;

    @ApiModelProperty("是否已点赞")
    private Boolean isLiked;

    @ApiModelProperty("是否已评价")
    private Boolean hasReviewed;

    @ApiModelProperty("商家回复")
    private String reply;

    @ApiModelProperty("回复时间")
    private LocalDateTime replyTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
} 